package com.zy.serveice.impl;

import com.zy.bean.UserBean;
import com.zy.dao.UserDao;
import com.zy.serveice.UserService;

import java.util.List;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-06 周三 11:49
 * @since 17
 */
public class UserServiceImpl implements UserService {
    private final UserDao userDao;

    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public int add(UserBean user){
        return userDao.add(user);
    }

    @Override
    public int update(UserBean user) {
        return userDao.update(user);
    }

    @Override
    public int delete(UserBean user) {
        return userDao.delete(user);
    }

    @Override
    public List<UserBean> quarrAll() {
        return userDao.quarrAll();
    }
}
